using System;
using System.Collections.Generic;
using System.Text;

namespace RapidHDL
{
    public class Transcript
    {
        StringBuilder oStringBuilder = new StringBuilder();
        bool bChanged;

        public bool Changed
        {
            get { return bChanged; }
        }

        public void AddTranscript(string psLog)
        {
            oStringBuilder.Append(psLog);
            oStringBuilder.Append("\n");
            bChanged = true;
        }

        public string GetTranscript()
        {
            bChanged = false;
            return oStringBuilder.ToString();            
        }

        public void ResetTranscript()
        {
            oStringBuilder = new StringBuilder();
        }
    }
}
